
{template 'common/header'}
{php load()->func('tpl')}
<div class="main">
	<form action="" class="form-horizontal form" method="post" enctype="multipart/form-data">
		<input type="hidden" name="id" value="{$item['id']}">
		<div class="panel panel-default">
		  <div class="panel-heading">
		    <h3 class="panel-title">物业团队信息</h3>
		  </div>
		  <div class="panel-body">
		    <div class="form-group">
			    <label for="title" class="col-sm-2 control-label">标题</label>
			    <div class="col-xs-3">
			      <input type="text" name="title" value="{$item['title']}" class="form-control" placeHolder="请输入物业团队名称" id='title'/>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">公司照片</label>
			    <div class="col-xs-4">
			      {php echo tpl_form_field_image('topPicture', $item['topPicture'])}
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">团队介绍</label>
			    <div class="col-xs-10">
			      <textarea  name="content"  id="reply-add-text" class="form-control" rows="8">{$item['content']}</textarea>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label"></label>
			    <div class="col-xs-4">
			      <button type="submit" class="btn btn-primary span3" name="submit" value="提交">提交</button>
					<input type="hidden" name="token" value="{$_W['token']}" />
			    </div>
			</div>
		  </div>
		</div>
	</form>
	<script>
		require(['jquery','util'], function($, util){
			$(function(){
				var editor = util.editor($('#reply-add-text')[0]);
			});
		});
	</script>
</div>
{template 'common/footer'}